<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增渠道统计')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-count-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">渠道号：</label>
                <div class="col-sm-8">
                    <input name="channelCode" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">日期：</label>
                <div class="col-sm-8">
                    <input name="dateInfo" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">nv数量：</label>
                <div class="col-sm-8">
                    <input name="uvCount" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">注册数量：</label>
                <div class="col-sm-8">
                    <input name="registerCount" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">登陆数量：</label>
                <div class="col-sm-8">
                    <input name="loginCount" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">认证数量：</label>
                <div class="col-sm-8">
                    <input name="authCount" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">下载数量：</label>
                <div class="col-sm-8">
                    <input name="downloadCount" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">下游产品的nu统计：</label>
                <div class="col-sm-8">
                    <input name="proUvCount" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">下游产品的nu收益：</label>
                <div class="col-sm-8">
                    <input name="proUvProfit" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">下游产品的联登数量：</label>
                <div class="col-sm-8">
                    <input name="proUnionCount" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">下游产品的联登收益：</label>
                <div class="col-sm-8">
                    <input name="proUnionProfit" class="form-control" type="text" required>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "extend/count"
        $("#form-count-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-count-add').serialize());
            }
        }
    </script>
</body>
</html>